import Http from "@/http"

export function listApi() {
    return Http.get('department/list')
}

export function saveApi(params:any) {
    return params.id ? Http.put('department/edit/' + params.id, params) : Http.post('department/add', params)
}


export function deleteApi(id) {
    return Http.delete('department/delete/' + id)
}


export function optionsApi() {
    return Http.get('department/options')
}